package com.suyang.syt.model;

import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "T_USER_MESSAGE")
@SuppressWarnings("serial")
public class UserMessage extends BaseEntity {

	/** 用户id */
	private long userId;
	/** 用户名 */
	private String userName;
	/** 消息id */
	private long messageId;
	/** 消息名称 */
	private String messageName;
	
	public UserMessage() {
	}
	
	public UserMessage(long userId, String userName, long messageId, String messageName, String createTime) {
		this.setUserId(userId);
		this.setUserName(userName);
		this.setMessageId(messageId);
		this.setMessageName(messageName);
		this.setCreateTime(createTime);
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public long getMessageId() {
		return messageId;
	}

	public void setMessageId(long messageId) {
		this.messageId = messageId;
	}

	public String getMessageName() {
		return messageName;
	}

	public void setMessageName(String messageName) {
		this.messageName = messageName;
	}

}
